package DesignPatern.A09_命令模式.QSB.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/7/23 15:10
 * <p>
 * 命令1
 */
public class ConcreteCommand1 extends Command
{
    private Receiver receiver;
    
    public ConcreteCommand1(Receiver receiver1)
    {
        this.receiver = receiver1;
    }
    
    @Override
    public void execute()
    {
        this.receiver.doSomething();
    }
}
